package com.slkj.shilixiaoyuanapp.base;

import android.support.annotation.IntDef;
import android.support.annotation.LayoutRes;

import java.lang.annotation.ElementType;
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
import java.lang.annotation.Target;

/**
 * Created  on 2018/6/25 0025
 *
 * @author 唐开阔
 * @describe
 */
@Target(ElementType.TYPE)
@Retention(RetentionPolicy.RUNTIME)
public @interface ActivityInfo {
    public static final int NO_RIGHT_IC = -1;
    public static final int TITLE_ONE_LEVEL = 1;
    public static final int TITLE_TWO_LEVEL = 2;
    @IntDef({TITLE_ONE_LEVEL,TITLE_TWO_LEVEL})
    @Target(ElementType.METHOD)
    @Retention(RetentionPolicy.RUNTIME)
    public @interface TitleLevel{

    }
    @LayoutRes int layout();
    boolean isFullscreen()default false;
    boolean isShowActionBar()default true;
    String title() default "";
    String rightHint() default "";

    int rightIcRes() default NO_RIGHT_IC;
    @TitleLevel
    int titleLevel()default TITLE_ONE_LEVEL;
    boolean isShowMore()default false;

}
